﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace motelmanagement.useInterface
{
    public partial class test2 : DevComponents.DotNetBar.Controls.SlidePanel
    {
        public test2()
        {
            InitializeComponent();
            button1.Enabled = false;
            button1.BackColor = Color.White;
            button2.Enabled = false;
            button2.BackColor = Color.White;
            button3.Enabled = false;
            button3.BackColor = Color.White;
            button4.Enabled = false;
            button4.BackColor = Color.White;
        }

        private void progressBarX1_Click(object sender, EventArgs e)
        {

        }

        private void checkBoxX1_CheckedChanged(object sender, EventArgs e)
        {
            if (checkBoxX1.Checked)
            {
                button1.Enabled = true;
                button1.BackColor = Color.GreenYellow;
            }
            else
            {
                button1.Enabled = false;
                button1.BackColor = Color.White;
            }
        }

        private void checkBoxX2_CheckedChanged(object sender, EventArgs e)
        {
            button2.Enabled = true;
            button2.BackColor = Color.GreenYellow;
        }

        private void checkBoxX3_CheckedChanged(object sender, EventArgs e)
        {
            button3.Enabled = true;
            button3.BackColor = Color.GreenYellow;
        }

        private void checkBoxX4_CheckedChanged(object sender, EventArgs e)
        {
            button4.Enabled = true;
            button4.BackColor = Color.GreenYellow;
        }
        private void buttonX1_Click(object sender, EventArgs e)
        {
            test ts = new test();
            this.Controls.Add(ts);
            ts.BringToFront();
            ts.SlideSide = DevComponents.DotNetBar.Controls.eSlideSide.Left;
            this.ResumeLayout(false);
            //this.IsOpen = false;
            this.SlideOutButtonVisible = false;
        }
    }
}
